{include file="common/header.tpl"}
<section class="main">	
    <article class="right-col">
    	<h2><a href="{$back}">{$language.title.sponsor}</a> &raquo; {$language.ahref.edit}</h2>
        <form name="frmEdit" id="frmEdit" method="post" enctype="multipart/form-data" action="{$smarty.const.HOST_BACKEND}sponsor/saveedit" class="ui">
            <input type="hidden"  name="id" id="id"  value="{if isset($row)}{$row->sponsorid}{/if}" />
            <input type="hidden"  name="clubid" id="clubid"  value="{$intClubId}" />    	
            <ul>
            	{if isset($smarty.session.SPONSOR_ERROR)}
                	<li class="error">
                    	{include file="common/error.tpl" errors=$smarty.session.SPONSOR_ERROR}
                    </li>
                {/if}            	
                <li>
                	<label for="name">{$language.label.name}:</label>
                    <div class="txt">
	                	<input type="text" class="text" name="name" id="name" value="{if isset($row)}{$row->name}{/if}" autocomplete="false" />
                	</div>
                </li>                
                <li>
                	<label for="logo">{$language.label.logo}:</label>
                    <div class="txt">
                        <input type="text" name="link" id="link" value="{if isset($row)}{$row->logo}{/if}"/>	 
	                	<input type="file" class="text" name="logo" id="logo" value="" autocomplete="false" />
                	</div>
                </li>
                <li>
                	<label for="sshort">{$language.label.short}:</label>
                    <div class="txt">
                        <input type="text" name="sshort" id="sshort" value="{if isset($row)}{$row->short}{/if}"/>	                
                	</div>
                </li>
                <li>
                	<label for="description">{$language.label.description}:</label>
                    <div class="area">
                        <textarea rows="5" cols="50" name="description" id="description">{if isset($row)}{$row->description}{/if}</textarea>	               
                	</div>                    
                </li>
                <li>
                	<label for="tag">{$language.label.tag}:</label>
                    <div class="txt">
	                	<input type="text" class="text" name="tag" id="tag" value="{if isset($row)}{$row->tag}{/if}" autocomplete="false" />
                	</div>
                </li>                             
                <li>
                 	<button type="submit"><strong>{$language.btn.save}</strong></button>
                    <button type="button" class="cancel" onclick="javascript:document.location.href='{$back}'"><strong>{$language.btn.cancel}</strong></button>
                </li>
            </ul>
        </form>
    </article> 
</section>
{include file="common/footer.tpl"}
                
